package com.inibb.app.converter;

import com.inibb.app.po.BasePO;
import com.inibb.app.vo.BaseVO;

public class BaseVOConvertor {
	
	public static void converPO2VO(BasePO po,BaseVO vo){
		vo.setCreatedBy(po.getCreatedBy());
		vo.setCreatedDate(po.getCreatedDate());
		vo.setUpdatedBy(po.getUpdatedBy());
		vo.setUpdatedDate(po.getUpdatedDate());
		/*if(po.getCreateUser()!=null)
			vo.setCreateUser(new UserConverter().toPO(userDTO)(po.getCreateUser()));*/
	}
	
	public static void converVO2PO(BaseVO vo,BasePO po){
		po.setCreatedBy(vo.getCreatedBy());
		po.setCreatedDate(vo.getCreatedDate());
		po.setUpdatedBy(vo.getUpdatedBy());
		po.setUpdatedDate(vo.getUpdatedDate());
	}
}
